home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.earthlink.net!usenet
- From: macc@earthlink.net (OB1)
- Newsgroups: comp.lang.c++
- Subject: HELP!!! - loop control problems
- Date: Sun, 21 Jan 1996 00:24:59 GMT
- Organization: O.B. Productions
- Message-ID: <4ds174$6t0@bolivia.it.earthlink.net>
- NNTP-Posting-Host: 206.43.157.143
- X-Newsreader: Forte Free Agent 1.0.82
-
- I have the following code in a program I'm writing:
-
- const long SCREEN_SIZE = 320 * 200;
- long count = 0;
- while (count <= SCREEN_SIZE)
- {
- ... code (count gets incremented)
- }
-
- When I trace through my program, I find that the loop end condition is
- always true and the code inside the loop is never run. I looking for
- any ideas on why this doesn't work.
-
- Thanks,
- OB1
-
- macc@earthlink.net
-
-